package com.lzj.service;

import com.lzj.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2022/2/26
 */
public interface EmployeeService {
    Employee loadEmpByUsername(String username);
    int doReg(Employee employee);
    List<Employee> getAllEmpsByStatus(String status);
    int approveaccount(int employeeid, String status);
    List<Employee> getAllEmps(Employee employee,int page,int pageSize);//分页查询
    Long getTotal(Employee employee);//获取记录数
    int updateEmp(int id,String status);
    List<Employee> getEmpsByDepId(int depId);
    List<Integer> getEmpsIdByDepName(String employeename);
//    List<Employee> getEmpNameByEmpId(List<Integer> empsId);
    List<Employee> getEmpsByEmpId(List<Integer> empById);
    int updatePassword(String newpassword,int employeeid);
}
